package com.fly.mhello.service;

import java.util.Optional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fly.mhello.dao.HelloDao;
import com.fly.mhello.util.Hello;

@Service
public class HelloService {

	@Autowired
	private HelloDao helloDao;
	
	public Hello findAll(String id) {
		Optional<Hello> findById = helloDao.findById(id);
		return findById.get();
	}
}
